package com.net.server;

/**
 * 网络服务器抽象,可以用Netty和Mina实现
 * 
 * @author yangqifan
 *
 */
public interface NetServer {

	/**
	 * 启动网络服务器,准备接受客户端的连接
	 * @throws Exception
	 */
	public abstract void start();

	public abstract void stop();

	public abstract boolean isRunning();

	public abstract void setRunning(boolean running);

}
